<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"></jsp:include>
	<div class="container">
	  <div class="row">
		<jsp:include page="include/left.jsp"></jsp:include>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="document.html"><i class="icon-folder-open"></i>资料</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="new_document.jspx" class="link-black">分享新资料</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;">
			
				<c:forEach items="${docList}" var="doc">
					<blockquote>
					  <h4><a href="toDocumentShow.jspx?docid=${doc.doid}">${doc.title}</a></h4>
					  <p style="font-size:14px;line-height:1.5;">${doc.content}</p>
					  <small>${doc.username}发布于${doc.createtime}</small>
					  <a href="editDocument.jspx?doid=${doc.doid}" title="编辑"><i class="icon-pencil"></i></a>
					  <a href="delServlet.jspx?doid=${doc.doid}" title="删除" id="del"><i class="icon-trash"></i></a>
					</blockquote>
				</c:forEach>
				
				<div class="pagination pull-right">
				  <ul>
					<li><a href="#">Prev</a></li>
					<li class="active">
					  <a href="#">1</a>
					</li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">Next</a></li>
				  </ul>
				</div>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#del").click(function(){
				if(confirm("你确定要删除吗?")){
					Location href="";
					alert("删除成功");
				} else {
					
					alert("操作已取消");
				}
			});
		
		
		});
	
	</script>
	
	
</body>
</html>